A York building that once housed a troubled care home is in the hands of new owners who have hailed a “new beginning” for the site.