Germany's highest court has ruled that a legal challenge against one of the ECB's main tools to fight the euro zone's financial crisis is not valid.