Just days after layoff announcements from Google parent Alphabet and online retailer Wayfair boosted the firms’ stock values, Spotify shares rallied Monday as the streaming service cut hundreds of jobs to help rein in costs—a phenomenon analysts believe will continue throughout the year, boosting market values but possibly pushing millions of people into unemployment ahead of a potential recession.