Down a set and twice broken while serving for the match, the world No. 3 found a way through in a two-hour-plus battle.