Detainees at the Guantanamo Bay prison in Cuba will soon be allowed to be transferred to the U.S. for trial.
On Tuesday, the Senate passed a measure that is part of a larger $44.1 billion budget bill providing funding for the Homeland Security Department.
It's a small victory for President Barack Obama's plan to close the Guantanamo Bay facility -- but it comes with some caveats.
The plan requires 15 days notice before a transfer can occur and a certification that the prisoner does not pose a security risk.
The bill also supports the president's decision not to release photos of prisoner abuse at Guantanamo.
The House has already approved similar legislation and it now goes to the president to be signed into law.