Budget deal gives 25 percent of cap and trade money to high-speed rail