Bill Cosby, who has for decades been pursued by allegations of sexual misconduct, was charged with sexual assault in Pennsylvania on Wednesday in a case that many people, including women who had come forward publicly, long thought prosecutors would never bring.