Sri Lankan lawmakers on Wednesday elected the unpopular prime minister as their new president, a choice that risked reig