Lawyers for Mayor Eric Adams of New York had asked for the bribery charge to be thrown out, but the judge was not persuaded.