Superior Court Judge Mark Rindner issued his ruling late Tuesday in a lawsuit brought by the American Civil Liberties Union of Alaska.
The ACLU filed a lawsuit contending the raids are unconstitutional because they violate property rights of the homeless. The group says the homeless have the same rights as everyone else.
The city passed an ordinance this summer giving the homeless five days' notice to leave the illegal camps. The ACLU says property then is seized and destroyed.
The ACLU wants the city to provide longer notice and store seized property, as well as give time for social services to be involved.