Six U.S. senators introduced bipartisan legislation on Thursday to restrict loans from international financial institutions to Turkey “until the Turkish government ends the unjust detention of U.S. citizens”, Reuters reported quoting a senate committee statement.

The move followed a Turkish court decision on Wednesday to keep U.S. pastor Andrew Brunson in jail during his trial on terrorism and spying charges, a case that has deepened a rift with NATO ally Washington.

The bill, dubbed the Turkey International Financial Institutions Act, directs the U.S. executive of the World Bank and European Bank for Reconstruction and Development (EBRD) to oppose future loans, except for humanitarian purposes, to Turkey, the Senate Committee on Foreign Relations statement said.

It said the opposition should continue until Turkey is “no longer arbitrarily detaining or denying freedom of movement to United States citizens (including dual citizens) or locally employed staff members of the United States mission to Turkey.”