A rural GP practice that was set to close at the end of May could now stay open after a former prime minister stepped in.