Novak Djokovic won the French Open, setting a record for men’s Grand Slam titles with his 23rd victory.