He knew that they had no political case against Jesus so recommended, rightly so, that they use some religious law to convict Him.

They point blank told Pilate that the religious and political issues were irrelevant. They just wanted Jesus dead.