They were supposed to be loans, but the bailout didn't have eligibility requirements.
I have no problems with loans as long as they are repaid and the government doesn't use that as their "in" to seize control. This is certainly no worse than the subsidies the imports have gotten, money right out of taxpayer pockets that isn't directly repaid.