Japan approves long-range weapons to counter growing threats from rivals