All right, so the reason why these compunds are soluble is that they have lone pairs, so they're expected to be attacked by H+ from the acid, thus breaking intermolecular interactions in the solid.
And the addition of water draws the acid from the solution, leaving the other phase with more organic molecules which are less polar and less soluble in water. Then the two phases can be separated.
Am I right so far?