to bat/to go to bat

Meaning 1
substitute for another batter in baseball
Sentence 1
The manager sent a left-handed batter to go to bat for the other batters against the right-handed pitcher.
Meaning 2
supporting or substituting for someone
Sentence 2
The CEO and founder of a corporation went to bat for his corporation in Congressional hearings.