Obama open to middle ground with Republicans on immigration reform