DETROIT—Despite taking on a huge chunk of an expensive electric vehicle recall, General Motors posted $2.54 billion in second-quarter net income, a 52 percent increase over a year ago. Continued strong vehicle sales and pricing, as well as cost cuts, ...