TOKYO — Despite being mired in recalls and inquiries into its safety record, Toyota roared back to a profit in the fiscal year that just ended and forecast on Tuesday a further increase in earnings.