The loss ends Djokovic's bid to become the first man since 1969 to win all four majors in a calendar year.