Bank of America Corp.’s biggest regulatory fine in the past decade is driving one of its worst earnings days in recent years.