All 300 students abducted by gunmen from a Nigerian Catholic boarding school in November are now free, according to a government official.