Ally Financial’s ResCap mortgage unit filed for a prepackaged bankruptcy protection Monday, a move that the taxpayer-owned bank says will allow it to take another step to repay Treasury.