Dish soap will kill ants but it will not kill the queen in the nest or remove the cause that is bringing the ants to the plants.
Normally ants will only go great distances for food. They have everything else they need at their home! It is likely that you have scale or mealybug on some of your house plants that are excreting a sugary sap. This will attract ants.
This site indicates that plunging your plant into soapy water is effective
If ants are found in potted plants, remove the containers from the
building, then place the pots for 20 or more minutes in a solution of
insecticidal soap and water at a rate of 1 to 2 tablespoons of
insecticidal soap per quart of water. Submerge so the surface of the
soil is just covered by the water-soap solution
Please provide some pictures of the plants, particularly the underside of the leaves and we can make further diagnosis.