A unit of Johnson & Johnson will pay the U.S. government $360 million to resolve an investigation into its financial support of a charity that helped Medicare patients cover out-of-pocket drug costs, the Department of Justice said on Thursday.