The US Democrats have agreed to a compromise that will allow the US government to keep functioning, and federal offices will reopen today.