Ireland to close Apple's tax loophole, but leave bigger one open