Possible compromise on immigration reform takes shape