How can I power a USB cord from a 12v 2a power supply?
A buck converter is cheap and easy way. There are lots of them on eBay, baggood, amazon, AliExpress any of those sites. 

Search for DC to DC converter 12 volt to 5 volt.