Immigration bills get Thursday vote but still face hurdles in becoming law