Investors are snapping up shares of GM and Ford after the companies reported strong sales and favorable shifts in federal policy.