Tens of thousands of federal prisoners will receive tablets for education, rehabilitation, and secure messaging under a new Bureau of Prisons contract.