House approves bill on terror detainees