Johnson Controls has reported a 20% increase in its full year sales as the company swung back into profit.