In the form of loans. Far from a perfect program, but from Wikipedia:
> On December 19, 2014, the U.S. Treasury sold its remaining holdings of Ally Financial, essentially ending the program. Through the Treasury, the US Government actually booked $15.3 billion in profit, as it earned $441.7 billion on the $426.4 billion invested.[2][3]