It also aligned with their shared priorities in civil rights and Cold War policies.