The Federal Court has slugged Westpac with a $26 million penalty for failing to respond to customers who were facing financial hardship.