Answer:
They struck it down because it was cruel and unethical. Since black people were forbidden from residing in metropolitan areas, it hindered people's ability to move freely. Only the townships remote from the places of employment were accessible to Blacks.
Attempts to challenge the law in court were unsuccessful. A significant protest against the law was held in 1950, and the ANC and the South African Indian Council then met in Fordsburg, Johannesburg's Freedom Square in 1952.
There were volunteers for staged sit-ins in the restaurant exclusively open to white people, and a civil mass disobedience began. People actively sought to be arrested to protest.
Hope this helps!