A federal judge has ruled that General Motors can seek as much as $US253 million in pension costs from the United States federal government, the Associated Press (AP) reported.