The Obama administration secretly gave its blessing to arms shipments to Libyan rebels from Qatar last year, but American officials later grew alarmed as evidence grew that Qatar was turning some of the weapons over to Islamic militants, according to United States officials and foreign diplomats.