WASHINGTON (Reuters) - SolarCity will pay $29.5 million to settle a long-running investigation into allegations it violated federal law by submitting inflated claims to the government through a popular stimulus program set up during the Obama administration, the U.S. Justice Department said Friday.