BlackBerry will pay Nokia $137 million over a contract dispute