COPENHAGEN—Maersk raised its 2022 profit guidance for a second time on Tuesday after beating quarterly revenue expectations as congested global supply chains that have boosted freight rates persist longer than expected. The shipping industry has seen record profits in recent quarters due to a surge in consumer demand and pandemic-related logjams holding up containers in…