Forty horses were rescued from a burning ranch in California