A Pennsylvania appeals court on Monday blocked Mr. Cosby’s effort to have sexual assault charges against him thrown out.