Statistics for Constrained Likelihood Inference in Instrumental Variable Regression with Invalid Instruments and Its Application to GWAS Summary Data