A federal judge ruled that the Trump administration improperly withheld about $2 billion from the Chicago Transit Authority for its Red Line extension and modernization projects.