Court rejects suit over prophet cartoons