Obama backs same-sex provision to immigration bill