Court blocks challenge over unethical RBS investments