Sinn Féin was able to legally raise over £150,000 in Dublin without declaring it to the Republic’s political finance watchdog by using a loophole in Northern Ireland.