A federal judge ruled that the monument violated the law and ordered it removed .