Conservative lawmaker you refused to vote for legislation announces retirement after attack from president