At very least they both share immense responsibility for causing individual harm. Sure the government may start a war, but that war can’t happen without bombs and bullets, and in America at least those factories aren’t run by the government. There is an intermediate step oftentimes, but I don’t think that necessarily disconnects companies from responsibility.
If you work at a guided bomb factory you may not be the person dropping it, but you are responsible for the destruction it causes in a small way.
Also, if global warming kills us all then it is likely that the oil companies bear some responsibility for it right?
Government sucks - I agree with that statement, but we shouldn’t act like corporations are appreciably less responsible.