The African Union additionally stated that it would stop recognising Jammeh as president as of 19 January 2017. He attempted to have Barrow's inauguration blocked, but the Chief Justice of the Supreme Court refused to rule on the matter. On Tuesday 17 January, he declared a 90-day state of emergency, prohibiting "acts of disobedience" and "acts intended to disturb public order". Various ministers resigned, and about 46,000 civilians (about 75% of whom were children) fled the country. Senegal, which was selected by ECOWAS to lead the operation to remove Jammeh from his post, moved its troops closer to the border with The Gambia on 18 January. Jammeh was warned to step down by midnight. Jammeh refused to step down and the deadline passed. On 18 January, parliament voted to extend Jammeh's term by three months, while in parallel, Adama Barrow was internationally recognised as President. On 19 January, Senegalese troops entered The Gambia. The United Nations Security Council approved a resolution backing Barrow while calling on Jammeh to step down. It backed ECOWAS' efforts to ensure that the results of the 2016 presidential election were respected by using political means first. Senegal halted its offensive, to allow mediation of the crisis one final time, with the invasion to proceed at noon on 20 January if Jammeh were to refuse to relinquish power. Jammeh again refused to step down and missed two deadlines on 20 January while regional leaders tried to persuade him to step down.