After a lengthy debate and a series of protests outside the chamber, the Alabama House of Representatives approved a bill revising the state’s controversial immigration law.