In a win for Peruvian President Martin Vizcarra, the country’s top court ruled on Tuesday that his dissolution of Congress amid a long-running standoff with lawmakers was legal.