In a message of cautious hope, the prime minister tried to outline the rewards for the political pain to come.