I believe the answer is: after being approved by the senate
This power is written under the article II of the united states constitution, The treaty would become a law after at least 2/3 of the senates votes in favour of it. Despite having this power, the senates cannot ratify the treaties. They can only either approves or rejects a resolution of ratification.