Military leaders, who have been ruling the country since 2019, agree to hand over power.