A German court has ruled that the European Central Bank's (ECB) quantitative-easing program is not backed by European Union treaties and have issued a three-month ultimatum to rectify the controversial measure.