Novak Djokovic beat Daniil Medvedev in the U.S. Open final on Sunday to win a 24th Grand Slam singles title and equal Margaret Court's record haul.