Three dimensional ordering and upper critical fields for a system of weakly coupled superconducting filaments