Pakistan court rules PM in contempt, ordered to appear