Labour's Andy Burnham won a significant majority - 55% of the vote - paving the way for him to challenge the prime minister.