Republicans score victories in two key US elections for governor, a year after President Obama was voted in.