Djokovic, Murray overcome challenges to win