WASHINGTON ( CNN ) -- Amtrak would lose its federal subsidies if it doesn 't put a system in place by early next year to check and track firearms so that passengers can legally put the weapons in their checked baggage , the Senate voted Wednesday .