Legislature approves bills targeting immigrants