Irish govt lawyers work to rule over chronic shortages