Hundreds of Apple Inc. contract workers at its Silicon Valley campus were told in recent days that their jobs would be suspended without pay as the tech giant curtails work at the offices amid the coronavirus outbreak. But on Monday, a company spokeswoman said Apple plans to pay the hourly workers.

The tech giant, which has more than $200 billion in cash and cash equivalents, has hundreds of contractors who work as janitors, bus drivers and perform other functions on its campus. Contractors representing about three-fourths of the unionized janitors began this weekend telling workers they would lose wages and health-care benefits, according to Denise Solis, SEIU-United Service Workers West, a union that represents about 11,000 janitors in Northern California.

Chief Executive Tim Cook had assured Apple employees in a March email that the company would continue to pay hourly workers even after closing its retail stores around the world. Mr. Cook didn’t specify whether Apple would pay hourly contract workers.

On Monday, in response to an inquiry from The Wall Street Journal, a spokeswoman said the janitors’ pay would continue. “We’re working with all of our suppliers to ensure hourly workers such as janitorial staff are being paid during this difficult time,” spokeswoman Kristin Huguet said after the Journal’s inquiry about the job elimination notices.

The unionized janitors make nearly $18 an hour plus about $10 in benefits, according to Ms. Solis. Collectively, that represents an estimated $35 million a year in total compensation for 600 workers. She said many of the workers had begun preparing to file for unemployment. On Monday night, janitorial contractors were still operating under the assumption their workers wouldn’t be paid, Ms. Solis said, but she was encouraged to hear that Apple had committed to paying them.