SF museum workers agree to contract