Republicans said they were just sticking up for the taxpayer in opposing what they saw as a badly flawed measure that could cost Americans many billions of dollars if the mortgage giants Fannie Mae and Freddie Mac ran into more trouble .