Papua New Guinea's foreign minister has quit after a controversy over spending on the country's official delegation at King Charles III's coronation.