States seeking masks, drugs, ventilators and other items from the stockpile are encountering a system beset by years of underfunding, changing lines of authority, confusion over the allocation of supplies and a lack of transparency from the administration, said state and federal officials and public health experts.