Novak Djokovic put a halt to Roger Federer's impressive start to the 2014 season by fighting back to land his third Indian Wells ATP Masters title.