Question: legislation to prohibit segregation in all public accommodations was
Answer: The Civil Rights Act of 1964 ( Pub. L. 88 -- 352 , 78 Stat. 241 , enacted July 2 , 1964 )