Qualcomm, Motorola defeated in patent case