Republicans and Democrats tried separately to fix a hole in the 2017 legislation, but both efforts failed.