It is Legal, if the judge deems the evidence is enough and signs a warrant it is legal.It wasn't operative for the Warrant.
They could and should have included that evidence when asking for the warrant, but they did not do so. Thus the warrant is not legally valid. That is what matters if we are to have rule of law.