Peru’s political crisis appears on verge of resolution as Congress choses centrist legislator as interim president.