Royal Dutch Shell PLC and its four partners have agreed to invest in a multibillion-dollar liquefied natural gas project in western Canada — the largest new one of its kind in years that would carve out the fastest route to Asia for North American gas.