The Czech Republic's highest court has upheld a government plan to pay billions of dollars to religious groups in compensation for property seized by the country’s former communist regime.