HARTFORD — A judge on Thursday rejected an agreement that would have let a man accused of sexually assaulting a state employee in August plead guilty to a reduced charge of unlawful restraint, with a sentence of two years and a day in prison, plus three years of special parole.