The branch of government that primarily handles the passing of bills related to foreign policy goals is the legislative branch. This branch, which includes Congress (comprising the House of Representatives and the Senate), is responsible for creating laws, including those that establish foreign policy.
However, it is important to note that the executive branch, led by the President, also plays a significant role in foreign policy decisions and implementation. While Congress can pass bills and resolutions related to foreign policy, the executive branch is responsible for conducting diplomacy, executing laws, and handling international relations.
The judicial branch does not have a significant role in the creation or passage of foreign policy legislation—as its primary function is to interpret the law and ensure that laws passed by the legislative branch comply with the Constitution.