Ruth Bader Ginsburg was hospitalized after breaking three ribs