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