It's not solely about currying favor. Many tech giants hate getting pushed around by politicians and courts around the world demanding censorship. Free speech rights in the US are much stronger than elsewhere in the world, and even businesses as large as Meta need political support to successfully push back on censorious overreach.
For context, in Germany you can face up to 3 years prison time for insulting a politician: https://www.dw.com/en/germany-greens-habeck-presses-charges-...