Dominic Grieve tables amendment seeking to stay in customs union