The Australian Securities and Investments Commission has failed in a high-profile challenge to a ruling for Westpac in its responsible lending case against the bank, with an appeals court majority saying the regulator read too much into the national credit laws.