Major indices closed higher on Monday as market participants shrugged off tariff threats from the Trump White House.