You can’t blame the White House for being surprised and flustered that parts of its draft proposal on immigration reform leaked.
Such flustering vapors arise when you have precious little experience drafting legislation of your own and submitting it for agency review.