The long decline of Dewey & LeBoeuf ended as the foundering law firm filed for bankruptcy protection in federal court in New York.