The best statement from Newton's Laws of Motion that explains the situation of swimming and applying a force to the water is:
A for every force on an object, that object exerts an equal and opposite force back.
This is a reflection of Newton's Third Law of Motion, which states that for every action, there is an equal and opposite reaction. When you push against the water to swim forward, the water pushes back with an equal force, allowing you to move forward.