A judge who refused earlier this month to dismiss the sexual-assault case against Bill Cosby on Tuesday rejected a second effort to throw out the charges.