Rising wages are beginning to eat into the profits of some U.S. companies.Businesses from dollar stores to hotel operators to fast-food chains have warned in recent months that higher labor costs have been a drag on their profits—a potential headwind for the nine-year stock-market rally as it struggles for momentum ahead of the second-quarter earnings season.