The agreement came amid an immigration crackdown by the administration of President Donald Trump, but also as Bay Area tech companies have gained unprecedented access to the White House.