A bill was quickly passed with bipartisan support to make June 19, a day that commemorates the end of slavery, a federal holiday.