It is illegal for corporations to make campaign contributions to federal candidates. Usually when the media say corporation X gave money to Congressman Y, it means that individuals working for the corporation gave money. Is that what happened here? If so, I have no problem with it.
It was the corporation’s PAC, not the corporation itself. That’s completely legal.