The House voted Thursday evening to put limits on President Obama's power to indefinitely detain U.S. citizens who are terrorist suspects, but rejected a proposal to eliminate the authority altogether.

In a close 214-211 vote, members approved an amendment to the 2014 National Defense Authorization Act (NDAA) from Rep. Bob Goodlatte (R-Va.) that says nothing in U.S. law can deny citizens the right to a court hearing. Twenty-one Republicans voted against the amendment, and only three Democrats voted for it.