NBCUniversal’s theme parks posted a quarterly profit for the first time in more than a year, a potential good sign for nearby hotels, stores and restaurants that lost foot traffic during the depths of the pandemic in Los Angeles and Orlando, Florida.