The House struggled Friday over the best way to slow illegal immigration in legislation seen as a prelude to a tougher debate next year over what to do with the 11 million undocumented people already in the country.

The House legislation, billed as a border protection, antiterrorism and illegal immigration control act, includes such measures as enlisting military and local law enforcement help in stopping illegal entrants and requiring employers to verify the legal status of their workers. It authorizes the building of a fence along parts of the U.S.-Mexico border.