Acting Customs and Border Protection commissioner says he’s stepping down amid outrage over detention conditions