The federal government must continue to provide grant money to the national community organizing group, a federal judge ruled Friday in Brooklyn.