KUALA LUMPUR, Aug 22 (Reuters) - JPMorgan Chase JPM.N will pay the Malaysian government $330 million as part of a settlement to resolve all matters related to its role in the multi-billion dollar scandal at state fund 1Malaysia Development Berhad (1MDB), the company and the government said in a joint statement on Friday.