Tech companies’ penchant for playing the political superhero, as long as it aligns with their business interests, will be tested by Trump