BlackBerry settles US patent battle with $600m deal