NEW YORK — A Staten Island ferry with a history of accidents, including a fatal wreck in 2003, malfunctioned as it approached its terminal Saturday and smashed into a pier with a jolt that tossed passengers to the deck and hurt as many as 37 people. The accident happened at around 9:20 a.m. as the Andrew J. Barberi arrived at the St. George Ferry Terminal on Staten Island, carrying 252 passengers and 18 crew. Passenger Jason Watler, 30, of St. George, said he became alarmed when the ferry approached the shore faster than usual and ran toward the back of the boat. The ferry's throttle failed to engage as it prepared to dock, she said, meaning the crew was unable to use the engines to apply reverse thrust and slow down. The cause of the malfunction is still unknown, she said. The approximately 3,000-ton, 310-foot-long ferry was moving at about 5 knots, or 5.8 miles per hour, when it hit.