Overrun by Germany in both world wars , it ended its neutrality in 1948 when it entered into the Benelux Customs Union and when it joined NATO the following year .