Judge rules against AIG in Bank of America’s $8.5 billion settlement