Ugandan court mostly upholds harsh anti-LGBTQ+ law