In a near-midnight vote, a Colorado Senate committee late Tuesday gave initial approval to a bill that would ban the sale or purchase of semiautomatic firearms that accept detachable magazines.