There's a tendency to minimize the work by others because we don't have the same perspective, but it's rarely ever accurate. Or helpful.
If they played a material role in meeting the goals then nothing. The question is so much about who is getting recognized as who isn't getting recognized. If you want to get recognized and get ahead then simply putting your head down and doing hard work isn't going to get you there.
Smart companies reward those workers, dumb ones often do not. This naturally pushes some of the smart and self motivated talent towards organizations where they will be rewarded.
The one other exception is personality. The toxic person who works until 3am will rarely if ever get rewarded, because people judge more on the toxicity than anything else.
Be in charge of the department/team that "lands a major deal or create a new product line that doubles revenue" and you're on your way to the top. Being the person who was in the office until 3 am working out the final details of that deal or fixing the show stopping bugs that let you actually launch the product won't get you anywhere.