WASHINGTON  Republican lawmakers nearly unanimously resisted supporting the president’s $787 billion stimulus package, but what has proved irresistible is the temptation to take credit for at least a few of those billions.

Despite criticizing the bill as wasteful, a handful of Republican members of the House and Senate have found some provisions to cheer.

Just hours after voting against the bill on the House floor last week, Representative John L. Mica of Florida issued news releases lauding the inclusion of $8 billion for high-speed rail projects around the nation. Mr. Mica said the bill would also help pay for a commuter train project in his Central Florida district.

“If we could put a man on the moon, we should be able to move people from city to city quickly instead of wasting time on a congested highway,” said Mr. Mica, the ranking Republican on the House Transportation and Infrastructure Committee. “I applaud President Obama’s recognition that high-speed rail should be part of America’s future.”