A charter bus carrying high school students from Pennsylvania crashed when it attempted to pass under a low bridge in Boston on Saturday night, injuring more than 30 people, four seriously, and leaving some trapped for more than an hour, authorities said.