A federal judge in Hartford has ordered a Connecticut nursing home chain to reinstate nearly 600 workers who have been on strike since July 3, and to rescind the pension and health care cuts it had imposed.

Judge Robert N. Chatigny of the United States District Court in Connecticut ruled on Tuesday night that the nursing homes’ owner, HealthBridge Management, had broken the law by refusing to bargain in good faith and by imposing the cuts before a true negotiating impasse had been reached.

Judge Chatigny issued an injunction that ordered HealthBridge to reinstate the workers by next Monday, even if it means ousting hundreds of the replacement workers hired to run the nursing homes after the strike began.

“Everybody is quite happy about the decision,” said Vern Scatliffe, a nurse’s aide, as he picketed outside Danbury Health Care Center, one of the five nursing homes — the others are in Milford, Newington, Stamford and Westport — where the workers walked out to protest the cuts HealthBridge had imposed. “The judge’s order is a big relief to me. I can now go back to work and earn my living again.”