Musk defends multibillion-dollar Tesla pay deal in court