A South Florida hospital has agreed to reimburse the state more than $800,000 to settle Medicaid claims about care for undocumented immigrants who sought treatment.

The payments from Homestead Hospital to the state are part of an ongoing tussle between hospitals and state officials over Medicaid coverage for people who may be in the country illegally but qualify for the program because of medical emergencies or because they are in labor or need dialysis.