Uganda’s supreme court on Thursday backed constitutional changes that allow long-ruling President Yoweri Museveni to extend his time in office.