U.S. employers are boosting benefits—including bonuses and vacation time—at a faster pace than salaries, a move that gives them more flexibility to dial back that compensation if the economy turns sour.

The cost of benefits for private-sector employers rose 3% in June from a year earlier, while the cost of wages and salaries advanced 2.7%, the Labor Department said Tuesday.

The...