This assumes companies can raise prices profitably. But if that were the case, why wouldn’t they raise prices right now, independent of what happens to costs?
I don’t buy many of the “costs will be passed on to consumers” arguments against regulation. If you assume companies already price things efficiently to maximize profit, then they cannot raise prices any further and make more money.