Widely thought to be biding his time for a presidential run, he is earning his stripes with national GOP leaders, who strongly oppose gay marriage. But at stake is his moderate reputation among Massachusetts voters, who like their Republicans to be liberal on social issues.