Alphabet Inc.’s Google, Apple Inc., Facebook Inc., Microsoft Corp., Uber Technologies Inc. and other companies expressed concern about the immigration order’s effect on their employees, with some executives saying the ban violated their personal and company principles.