Walt Disney World and the union for its actors and singers reached an agreement on Wednesday that will allow them to return to work, more than a month after they said they were locked out of the reopening of the theme park resort for publicly demanding coronavirus tests.